import request from '@/utils/request'

// 发送验证码
export function sendVerificationCode(phone) {
  return request({
    url: '/user/send-code',
    method: 'post',
    data: { phone }
  })
}

// 验证码登录
export function loginWithCode(data) {
  return request({
    url: '/user/login',
    method: 'post',
    data
  })
}

// 获取用户信息
export function getUserInfo() {
  return request({
    url: '/user/info',
    method: 'get'
  })
} 